<?php get_header(); ?>

	<div id="content">

		<?php do_action('bp_before_404'); ?>
		
		<div id="second-section" class="widget-section">
			<?php if(!function_exists('dynamic_sidebar') || !dynamic_sidebar('second-section')) : ?>

				<div class="widget-error">
					<?php _e('Please log in and add widgets to this section.', 'buddypress'); ?> <a href="<?php echo get_option('siteurl'); ?>/wp-admin/widgets.php?s=&amp;show=&amp;sidebar=second-section"><?php _e('Add Widgets', 'buddypress'); ?></a>
				</div>

			<?php endif; ?>
		</div>

		<div class="page 404">

			<h2 class="pagetitle"><?php _e('Page Not Found', 'buddypress'); ?></h2>

			<div id="message" class="info">

				<p><?php _e('The page you were looking for was not found.', 'buddypress'); ?>

			</div>

			<?php do_action('bp_404'); ?>

		</div>

		<?php do_action('bp_after_404'); ?>

	</div>

	<?php get_sidebar(); ?>

<?php get_footer(); ?>